﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;


public class AssetsPostManager : AssetPostprocessor
{

    //static string basePath = Application.dataPath.Substring(0, Application.dataPath.Length - "Assets".Length);

    static void OnPostprocessAllAssets(        
        string[] importedAssets,
        string[] deletedAssets,
        string[] movedAssets,
        string[] movedFromAssetPaths)
    {
        foreach (var path in importedAssets)
        {
            //重新加载了 dll 文件
            if (path.EndsWith("ILRuntimeProject.dll"))
            {
                Editor_ILRuntimeTools.DLLToBytes();
            }
        }
    }
}